const state = () => ({
    POSTUSN: [],
    routerInfo:{},
    TYPE: 'db',
    Loading: false,
    BANK: {},
    agentInfo: {}
})

const getters = {}

const mutations = {
    SET_UPLOADINFO(state, VALUE) {
        state.POSTUSN = VALUE
    },
    set_routerInfo(state, VALUE) {
        state.routerInfo = VALUE
    },
    SET_BANK(state, VALUE) {
        state.BANK = VALUE
    },
    SET_agentInfo(state, VALUE) {
        state.agentInfo = VALUE
    },
    SET_LOADING(state, VALUE) {
        state.Loading = VALUE
    },
    SET_UPLOADINFOTYPE(state, VALUE) {
        state.TYPE = VALUE
    }
}

const actions = {
    async GetNum({ commit }, value) {
        commit('SET_NUM', value)
    },
    async GetLoading({ commit }, value) {
        commit('SET_LOADING', value)
    },
    async GetAgentInfo({ commit }, value) {
        commit('SET_agentInfo', value)
    },
    async GetRouterInfo({ commit }, value) {
        commit('set_routerInfo', value)
    },
    async GetBank({ commit }, value) {
        commit('SET_BANK', value)
    },
    async GetDetail({ commit }, value) {
        commit('SET_DETAIL', value)
    },
    async GetAddress({ commit }, value) {
        commit('SET_ADDRESS', value)
    },
    async GetposTusn({ commit }, value) {
        commit('SET_UPLOADINFO', value)
    },
    async GetposTusnType({ commit }, value) {
        commit('SET_UPLOADINFOTYPE', value)
    }
}

export default {
    namespaced: true,
    state,
    getters,
    actions,
    mutations
}
